Skip to content

24 add error notifications via discord on task failures - #25

Open
krzys13 wants to merge 3 commits into
mainfrom
24-add-error-notifications-via-discord-on-task-failures
Open

krzys13 wants to merge 3 commits into
mainfrom
24-add-error-notifications-via-discord-on-task-failures

Conversation

@krzys13

@krzys13 krzys13 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@krzys13 krzys13 self-assigned this Nov 6, 2026
@krzys13 krzys13 linked an issue Nov 6, 2026 that may be closed by this pull request
@krzys13
krzys13 force-pushed the 24-add-error-notifications-via-discord-on-task-failures branch 2 times, most recently from 12b8b16 to 211b458 Compare November 7, 2026 12:11
@krzys13
krzys13 marked this pull request as ready for review November 7, 2026 12:14
@krzys13
krzys13 requested a review from a team as a code owner November 7, 2026 12:14
@krzys13
krzys13 requested a review from mini-bomba November 7, 2026 12:15
@krzys13
krzys13 enabled auto-merge November 7, 2026 14:57
@krzys13
krzys13 disabled auto-merge November 7, 2026 14:57
@krzys13
krzys13 force-pushed the 24-add-error-notifications-via-discord-on-task-failures branch from 211b458 to 7069882 Compare November 7, 2026 15:10
…zation

- add a singleton webhook sender using DISORD_WEBHOOK_URL
- introduce typed notification payloads with INFO, WARNING and ERROR levels
- format notifications as embeds with a title, description and timestamp
- add a shared webhook manager for commands
- connect synchronization failure notifications to the --webhook (-w) flag
- include the error message or exit code in failure notifications
- log webhook HTTP and network failures without replacing the command result
- introduce an in-memory message buffer and repetition-limit configuration
@krzys13
krzys13 force-pushed the 24-add-error-notifications-via-discord-on-task-failures branch from 7069882 to cf57051 Compare November 7, 2026 16:08

@mini-bomba mini-bomba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2/3 of the util files are not needed
you're trying to fix edge cases that will not be reached

  • we don't really need rate limiting, we will not be sending more than 1 message per command run (and a command runs every minute at worst - discord allows us to send 5 messages every 10 seconds)
  • this whole manager/class/singleton business smells of java practices, all you need here is a simple function that just sends a webhook payload to the webhook url

Comment thread utils/command_message_manager.ts Resolved
@krzys13
krzys13 force-pushed the 24-add-error-notifications-via-discord-on-task-failures branch from 2ea7992 to cd506f2 Compare November 10, 2026 21:44
@krzys13
krzys13 requested a review from mini-bomba November 10, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add error notifications via discord on task failures

2 participants